import request from '@/utils/request'

// 查询本地图片列表
export function listLocalpic(query) {
  return request({
    url: '/manage/localpic/list',
    method: 'get',
    params: query
  })
}

// 查询本地图片详细
export function getLocalpic(id) {
  return request({
    url: '/manage/localpic/' + id,
    method: 'get'
  })
}

// 新增本地图片
export function addLocalpic(data) {
  return request({
    url: '/manage/localpic',
    method: 'post',
    data: data
  })
}

// 修改本地图片
export function updateLocalpic(data) {
  return request({
    url: '/manage/localpic',
    method: 'put',
    data: data
  })
}

// 删除本地图片
export function delLocalpic(id) {
  return request({
    url: '/manage/localpic/' + id,
    method: 'delete'
  })
}

// 推送数据到kafka
export function pushDataToKafka(id) {
  return request({
    url: '/manage/localpic/pushDataToKafka/' + id,
    method: 'post'
  })
}

// 把搜索条件数据推送到kafka
export function pushDataToKafkaByQuery(query){
  
  return request({
    url: '/manage/localpic/pushDataToKafkaBuQuery',
    method: 'post',
    data: query
  })
}
